<?
include_once('database.php');
$datatable = urldecode($_GET['season']);
$q="SELECT * FROM eventlist WHERE datatable='" . $datatable . "'";
$result=mysql_query($q)or die(mysql_error());
echo "<select name=\"regional\">";
while($row = mysql_fetch_array($result))
{
		echo "<option value=\"".$row['event']."\">".$row['event']."</option>";
}
echo "</select>";
?>